package com.ktwlrj.securitycenter.mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ktwlrj.core.base.SuperMapper;
import com.ktwlrj.securitycenter.controller.args.SafePassApprovePageArgs;
import com.ktwlrj.securitycenter.controller.args.SafePassPageArgs;
import com.ktwlrj.securitycenter.dto.SafePassApprovePageDto;
import com.ktwlrj.securitycenter.dto.SafePassPageDto;
import com.ktwlrj.securitycenter.entity.SafePassEntity;

/**
 * (SafePass)持久层
 *
 * @author code generation
 * @date 2020-02-24 18:15:41
 * @since JDK1.8
 */
@Repository
public interface SafePassMapper extends SuperMapper<SafePassEntity>{
   /**
     * 分页查询
     *
     * @param args ${@link SafePassPageArgs}
     * @param page  ${@link Page}
     * @return IPage<SafePassPageDto> ${@link IPage<SafePassPageDto>}
     * @author code generation
     * @date 2020-02-24 18:15:41
     */
    IPage<SafePassPageDto> page(Page page, @Param("query") SafePassPageArgs args);
    
    /**
     * 历史分页查询
     *
     * @param args ${@link SafePassPageArgs}
     * @param page  ${@link Page}
     * @return IPage<SafePassPageDto> ${@link IPage<SafePassPageDto>}
     * @author code generation
     * @date 2020-02-24 18:15:41
     */
    IPage<SafePassPageDto> historyPage(Page page, @Param("query") SafePassPageArgs args);
    
    /**
     * 审批分页查询
     *
     * @param args ${@link SafePassPageArgs}
     * @param page  ${@link Page}
     * @return IPage<SafePassPageDto> ${@link IPage<SafePassPageDto>}
     * @author code generation
     * @date 2020-02-24 18:15:41
     */
    IPage<SafePassApprovePageDto> approvePage(Page page, @Param("query") SafePassApprovePageArgs args);
}